/**
 * 
 */
package com.pe.pgn.clubpgn.domain;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.compass.annotations.Searchable;
import org.compass.annotations.SearchableId;
import org.hibernate.annotations.Type;

/**
 * @author Edwin Farfan
 *
 */

@Entity
@Table(name = "clpb_empresa_celular")
@Searchable
public class ClpbEmpresaCelular extends CamposAuditoria {

	/**
	 * 
	 */
	private static final long serialVersionUID = 211206746311703898L;
	private Long id;
	private String deEmpresaCelular;
	private boolean stEmpresaCelular;
	
	    
	@Id
    @GeneratedValue(strategy = GenerationType.SEQUENCE)
    @SearchableId    
	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	@Column(name = "de_empresa_celular", nullable = false, length = 100)
	public String getDeEmpresaCelular() {
		return deEmpresaCelular;
	}

	public void setDeEmpresaCelular(String deEmpresaCelular) {
		this.deEmpresaCelular = deEmpresaCelular;
	}

	@Column(name = "st_empresa_celular", nullable = false)
	@Type(type = "yes_no") 
	public boolean isStEmpresaCelular() {
		return stEmpresaCelular;
	}

	public void setStEmpresaCelular(boolean stEmpresaCelular) {
		this.stEmpresaCelular = stEmpresaCelular;
	}

	@Override
	public boolean equals(Object o) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public int hashCode() {
		// TODO Auto-generated method stub
		return 0;
	}

	/* (non-Javadoc)
	 * @see org.appfuse.model.BaseObject#toString()
	 */
	@Override
	public String toString() {
		return this.deEmpresaCelular;
	}

}
